package com.laowang.framework.config;

import com.laowang.common.utils.PayUtil;
import com.laowang.project.pay.config.MyWxPayConfigUtil;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Map;

/**
 * @Auther laowang
 * @Date 2024/4/10
 * @Description
 */

@EnableAsync
@Component
public class AsyncUtil {

    @Async
    public void  insertLog(MyWxPayConfigUtil myWxPayConfigUtil ){
        System.out.println("退款事件");
        System.out.println(myWxPayConfigUtil.getOrderId()+"订单退款");
        Map<String, String> map = PayUtil.test5(myWxPayConfigUtil);
        System.out.println(map);
    }
}
